import 'dart:convert';

import 'package:get/get_rx/src/rx_types/rx_types.dart';
import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/device_info_entity.g.dart';

@JsonSerializable()
class DeviceInfoEntity {
  int? id;
  String? deviceName;
  String? deviceBluetooth;
  String? deviceSerialnum;
  String? deviceImg;
  int? groupId;
  String? groupName;
  bool? isNetDevice;

  var closeState = false.obs;
  var isBluetooth = false.obs;
  var isWifi = false.obs;

  DeviceInfoEntity();

  factory DeviceInfoEntity.fromJson(Map<String, dynamic> json) => $DeviceInfoEntityFromJson(json);

  Map<String, dynamic> toJson() => $DeviceInfoEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
